﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SitePagePopUp.Master" AutoEventWireup="true" CodeBehind="ThemCauHoi.aspx.cs" Inherits="TranTekBE.Trac_Nghiem.ThemCauHoi" %>


<asp:Content ID="Content2" ContentPlaceHolderID="BodyPopupContent" runat="server">
    <style type="text/css">
        .error {
            color: #FF0000;
            font-size: 12px;
            font-style: italic;
        }

        .success {
            color: green;
        }
    </style>
    <link href="../Styles/myStyle.css" rel="stylesheet" />
    <div style="">
        <table style="width: 800px; margin: 0 auto;">
            <tr>
                <td>Chọn Danh Mục</td>
                <td></td>
                <td>
                    <asp:DropDownList ID="ddlCategory" runat="server" TabIndex="10"></asp:DropDownList></td>
            </tr>
            <tr>
                <td>Câu  hỏi:</td>
                <td></td>
                <td>
                    <asp:TextBox ID="txtQuestion" runat="server" TextMode="MultiLine" Width="557px" Height="76px"></asp:TextBox>
                    <div class="error">
                        <asp:RequiredFieldValidator ControlToValidate="txtQuestion" ID="RequiredFieldValidator3" runat="server" ErrorMessage="Chưa nhập câu hỏi" Display="Dynamic" SetFocusOnError="True"></asp:RequiredFieldValidator>
                    </div>
                </td>
            </tr>
            <tr>
                <td></td>
                <td colspan="2">
                    <table id="table_answer">
                        <tr>
                            <td>Đáp án 1</td>
                            <td></td>
                            <td>
                                <asp:TextBox ID="txtAnswer1" runat="server" TextMode="MultiLine" Width="400" TabIndex="1"></asp:TextBox>
                                <div class="error">
                                    <asp:RequiredFieldValidator ControlToValidate="txtAnswer1" ID="RequiredFieldValidator1" runat="server" ErrorMessage="Chưa nhập đáp án" Display="Dynamic" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                </div>
                            </td>
                            <td>
                                <asp:RadioButton ID="RadioButton1" runat="server" GroupName="g1" Text="Đúng" Checked="false" TabIndex="10" /></td>
                        </tr>
                        <tr>
                            <td>Đáp án 2</td>
                            <td></td>
                            <td>
                                <asp:TextBox ID="txtAnswer2" runat="server" TextMode="MultiLine" Width="400" TabIndex="2"></asp:TextBox>
                                <div class="error">
                                    <asp:RequiredFieldValidator ControlToValidate="txtAnswer2" ID="RequiredFieldValidator2" runat="server" ErrorMessage="Chưa nhập đáp án" Display="Dynamic" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                </div>
                            </td>

                            <td>
                                <asp:RadioButton ID="RadioButton2" runat="server" GroupName="g1" Text="Đúng" Checked="false" TabIndex="10" />
                            </td>
                        </tr>
                        <tr>
                            <td>Đáp án 3</td>
                            <td></td>
                            <td>
                                <asp:TextBox ID="txtAnswer3" runat="server" TextMode="MultiLine" Width="400" TabIndex="3"></asp:TextBox>
                                <div class="error">
                                </div>
                            </td>
                            <td>
                                <asp:RadioButton ID="RadioButton3" runat="server" GroupName="g1" Text="Đúng" Checked="false" TabIndex="10" /></td>
                        </tr>
                        <tr>
                            <td>Đáp án 4</td>
                            <td></td>
                            <td>
                                <asp:TextBox ID="txtAnswer4" runat="server" TextMode="MultiLine" Width="400" TabIndex="4"></asp:TextBox>
                                <div class="error">
                                </div>
                            </td>
                            <td>
                                <asp:RadioButton ID="RadioButton4" runat="server" GroupName="g1" Text="Đúng" Checked="false" TabIndex="10" /></td>
                        </tr>
                        <tr>
                            <td>Đáp án 5</td>
                            <td></td>
                            <td>
                                <asp:TextBox ID="txtAnswer5" runat="server" TextMode="MultiLine" Width="400" TabIndex="5"></asp:TextBox>
                                <div class="error">
                                </div>
                            </td>
                            <td>
                                <asp:RadioButton ID="RadioButton5" runat="server" GroupName="g1" Text="Đúng" Checked="false" TabIndex="10" /></td>
                        </tr>
                        <tr>
                            <td>Đáp án 6</td>
                            <td></td>
                            <td>
                                <asp:TextBox ID="txtAnswer6" runat="server" TextMode="MultiLine" Width="400" TabIndex="6"></asp:TextBox>
                                <div class="error">
                                </div>
                            </td>
                            <td>
                                <asp:RadioButton ID="RadioButton6" runat="server" GroupName="g1" Text="Đúng" Checked="false" TabIndex="10" /></td>
                        </tr>
                    </table>

                </td>
            </tr>

            <tr>
                <td></td>
                <td></td>
                <td>
                    <asp:Button ID="btnUpdate" CssClass="btn btn-success" OnClick="btnUpdate_Click" runat="server" Text="Sửa Câu Hỏi" TabIndex="5" />
                    <asp:Button ID="btnCreate" CssClass="btn btn-success" OnClick="btnCreate_Click" runat="server" Text="Thêm Câu Hỏi" TabIndex="6" />
                    <input type="submit" value="Đóng" class="btn btn-success" onclick="parent.CloseDialog(); parent.ReloadWindow(); return false;" tabindex="7" />
                    <div class="error">
                        <asp:Literal ID="LiteralError" runat="server"></asp:Literal>
                    </div>
                    <div class="success">
                        <asp:Literal ID="LiteralSuccess" runat="server"></asp:Literal>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <script>
        $(document).ready(function () {
            $("#ctl00_BodyPopupContent_txtQuestion").focus();

        });
    </script>
</asp:Content>
